NDepend.API Documentation
AnnualInterestPercent(Nullable<Debt>,Nullable<AnnualInterest>) Method
NDepend.TechnicalDebt Namespace > ExtensionMethodsDebtUsableInCQLinq Class > AnnualInterestPercent Method : AnnualInterestPercent(Nullable<Debt>,Nullable<AnnualInterest>) Method
The nullable estimated cost-to-fix a set of issues, it can be negative in case of debt-diff value.
The nullable cost-to-not-fix per year a set of issue, it can be negative in case of annual-interest-diff value.
Gets the estimated annual debt interest percent, expressed in percent per year.
Syntax

Parameters

debt
The nullable estimated cost-to-fix a set of issues, it can be negative in case of debt-diff value.
annualInterest
The nullable cost-to-not-fix per year a set of issue, it can be negative in case of annual-interest-diff value.

Return Value

debt.Value.AnnualInterestPercent(annualInterest.Value) if both debt and annualInterest are not null, else returns null.
Remarks
The annual interest percent is equal to 100 multiplied by the annualInterest divided by the debt.
For example if the estimated cost-to-fix the debt is equal to 10 man-days, and the estimated cost-to-not-fix the debt is equal to 2 man-days per year (this is the annualInterest) then the debt annual interest percent is 20% per year.
Notice that an annual interest percent higher than 100% means that during the next 12 monthes, it would be cheaper to fix the debt than not to fix it.
This method accepts Debt.Zero value for debt, in which case it returns zero.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsDebtUsableInCQLinq Class
ExtensionMethodsDebtUsableInCQLinq Members
Overload List
AnnualInterestPercent Property